function Pager() {
	var mountDom = '';
	var rowTotal = 0;
	var pageTotal = 0;
	var pageSize = 0;
	var pageNumber = 0;

	this.selectPage = function(_pageNumber) {
		alert('_pageNumber:' + _pageNumber);
		this.pageNumber = _pageNumber;
		this.rendorPager();
	}

	this.rendorPager = function() {
		// 渲染html
		var pagerHtml = '';
		if(this.pageTotal > 0) {
			// 计算当前分页列表
			var currentPageList = Math.ceil(this.pageNumber / this.pageSize);
			pagerHtml += '<ul style="margin: 0; padding: 0; list-style-type: none;">';
			if(currentPageList > 1) {
				pagerHtml += '<li style="display: inline-block; margin: 5px;"><a href="javascript:void(0);" style="padding: 5px;">首页</a></li>';
			}
			for(var i = currentPageList * 10 - 9; i <= currentPageList * 10; i ++) {
				if(i == this.pageNumber) {
					pagerHtml += '<li style="display: inline-block; margin: 5px;"><a href="javascript:selectPage(' + i + ');" style="padding: 5px; background-color: red;">' + i + '</a></li>';
				} else {
					pagerHtml += '<li style="display: inline-block; margin: 5px;"><a href="javascript:selectPage(' + i + ');" style="padding: 5px; background-color: green;">' + i + '</a></li>';
				}
			}
			if(currentPageList > 1) {
				pagerHtml += '<li style="display: inline-block; margin: 5px;"><a href="javascript:void(0);" style="padding: 5px;">末页</a></li>';
			}
			pagerHtml += '</ul>';
			$(this.mountDom).html(pagerHtml);
		} else {
			console.log('分页总数小于0，故不分页！');
		}
	}

	this.initPager = function(_mountDom, _rowTotal, _pageSize, _pageNumber) {
		this.mountDom = _mountDom;
		this.rowTotal = _rowTotal;
		this.pageSize = _pageSize;
		this.pageNumber = _pageNumber;
		// 计算分页数
		this.pageTotal = Math.ceil(this.rowTotal / this.pageSize);
		this.rendorPager();
	}
}